package com.tanhua.dubbo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "login_log")
public class LoginUser implements Serializable {

    @Id
    private ObjectId id;

    private Long userId;

    private Long loginTime;

    private String loginAddress;

    private String loginTerminal;
}
